package com.wzdigit.wms.wms.mapper.inv.count;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wzdigit.framework.orm.mybatis.MyBatisRepository;
import com.wzdigit.wms.wms.domain.dto.inv.count.InvCountDtlResponse;
import com.wzdigit.wms.wms.domain.inv.count.InvCountDtlGoods;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 
 * @since 2021-10-08
 */

@MyBatisRepository
public interface InvCountDtlGoodsMapper extends BaseMapper<InvCountDtlGoods> {

    List<InvCountDtlGoods> selectSnByHeaderId(@Param("headerId") BigDecimal headerId,@Param("skuId")Integer skuId,@Param("sn")String sn,@Param("resultStatus")Integer resultStatus);

    int updateResultByDtlId(@Param("dtlId") BigDecimal invCountDtlId,@Param("result") Integer result,@Param("loginName")String loginName);

    int updateGoodsId(@Param("difId") BigDecimal invCountDifId,
                      @Param("goodsSn") String goodsSn, @Param("goodsId") Integer goodsId);
}
